package com.csw.shuanfa.CodeImprove.CompleteFutureLinkedBlockingQueue.YiBu;

public class ThreadXianHouTest {
    public static void main(String[] args) throws InterruptedException {
        Thread thread1 = new Thread(() -> {
            for (int i = 0; i < 10; i++) {
                //Thread.currentThread().getName() + "]" + i);
            }
        });
        Thread thread2 = new Thread(() -> {
            for (int i = 0; i < 10; i++) {
                //Thread.currentThread().getName() + "]" + i);
            }
        });
        //先1后2
        thread1.start();
        thread1.join();

        thread2.start();
        thread2.join();
        //结束");
    }
}
